<style type="text/css">
    .pageFormContent{
        padding-top:20px;
        padding-left:15px;
    }
    .pageFormContent .adRight label {
        width: 100%;
        height: 26px;
        line-height: 26px;
    }
</style>
<div class="pageContent">
    <form method="post" action="{:url('Activity/add')}" class="pageForm" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div layoutH="58">
            <div class="pageFormContent">
                <div class="unit">
                    <label>活动名称：</label>
                    <input type="text" name="activity_name" maxlength="200" class="required" value="" />
                </div>
                <div class="unit">
                    <label>活动礼物：</label>
                    <table>
                        {volist name="gift" id="vo"}
                        <tr>
                            <td style="text-align:left;">
                                {$vo.gift_name}
                            </td>
                            <td>
                                <input type="checkbox" name="gift_id[]" value="{$vo.id}">&nbsp;
                            </td>
                        </tr>
                        {/volist}
                    </table>



                </div>
                <!--                <div class="unit">
                                    <label>图片：</label>
                                    {:widget('Upload/image', ['activity_img', ''])}
                                </div>-->
                <div class="unit">
                    <label>开始时间：</label>
                    <input name="opentime" type="text" class="date" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" value="">
                </div>
                <div class="unit">
                    <label>结束时间：</label>
                    <input name="closetime" type="text" class="date" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" value="">
                </div>
<!--                <div class="unit">
                    <label>排序：</label>
                    <input type="text" name="sort" size="3" maxlength="3" class="digits" value="0" />
                </div>-->
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>
</div>